import 'package:flutter/material.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';
//动画和主题基本色配置
const kAppConfig = 'lib/common/config.json';

const kSplashScreen = "assets/images/faker.flr";

const kEmptyColor = 0XFFF2F2F2;
//自定义按钮
const IconData menu = IconData(0xe900, fontFamily: "CustomIcons");

const IconData option = IconData(0xe902, fontFamily: "CustomIcons");

const kLocalKey = {
  "userInfo": "userInfo",
  "userAddress": "userAddress",
  "recentSearches": "recentSearches",
  "collects": "collects",
  "home": "home",
  "rss": "rss"
};

const kColorNameToHex = {
  "red": "#ec3636",
  "black": "#000000",
  "white": "#ffffff",
  "green": "#36ec58",
  "grey": "#919191",
  "yellow": "#f6e46a",
  "blue": "#3b35f3"
};

/// Filter value
const kSliderActiveColor = 0xFF2c3e50;
const kSliderInactiveColor = 0x992c3e50;
const kMaxPriceFilter = 1000.0;
const kFilterDivision = 10;

const kOrderStatusColor = {
  "processing": "#B7791D",
  "cancelled": "#C82424",
  "refunded": "#C82424",
  "completed": "#15B873"
};

Widget kLoadingWidget(context) => Center(
  child: SpinKitFadingCube(
    color: Theme.of(context).primaryColor,
    size: 30.0,
  ),
);

enum kBlogLayout { simpleType, fullSizeImageType, halfSizeImageType, oneQuarterImageType }